<?php
define('MODULE_NAME','auction');
$actions = array('index','show');
$action = 'index';

if(isset($_REQUEST['action']))
{
	$action = strtolower($_REQUEST['action']);
	if(!in_array($action,$actions))
		$action = 'index';
}
	
define('ACTION_NAME',$action);

require_once './core/service/fanwe.service.php';
$fanwe = &FanweService::instance();
$fanwe->initialize();

require import('module/auction');

switch(ACTION_NAME)
{
	case 'index':
		AuctionModule::index();
	break;
	case 'show':
		AuctionModule::show();
	break;
}
?>